package cn.com.ycm.abstractfactory;

public class AbstractFactoryTest {


    public static void main(String[] args){
        IAbstractFactory  iAbstractFactory = new BMWFactory();
        iAbstractFactory.toCreateCar().createIcar();
        iAbstractFactory.toCreateEngineeringCar().createEngineeringCar();
        iAbstractFactory.toCreateTruck().createTruck();
       }
}
